<?php

namespace app\common\model;

use think\Model;

class Othvideo extends Model
{
    protected $pk='othvideo_id';
    protected $table='st_othvideo';
    public function checkName($video){
        $res=$this->where('othvideo_name',$video['othvideo_name'])->find();
        if($res){
            return ['valid'=>1];
        }else{
            return ['valid'=>0];
        }
    }
}
